import React from "react";
import ImgText from "../components/imgnews";

export default class Shouye extends React.Component{

    constructor(){
        super()
        this.state={
            count:6
        }
    }

    componentDidMount(){
        console.log(11);
        document.onSroll=function(){
            console.log(document.documentElement.scrollTop)
        }
    }
   
    render(){
        return(
            <div>
                <ImgText data="top" count={this.state.count} />
            </div>
        )
    }
}